# Contributor: Michał Fita <1369-Manveru@users.gitlab.alpinelinux.org>
# Maintainer: Michał Fita <1369-Manveru@users.gitlab.alpinelinux.org>
pkgname=qbs
pkgver=1.15.0
pkgrel=0
pkgdesc="A QtScript based open source cross-platform build system"
url="https://github.com/qbs/qbs"
arch="!s390x"
license="LGPL-2.1-or-later WITH Qt-LGPL-exception-1.1"
depends="qt5-qtbase qt5-qtscript"
makedepends="qt5-qtbase-dev qt5-qtscript-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/qbs/qbs/archive/v$pkgver.tar.gz"
options="!check" # Their unit test seem to rely on unclear dependencies (Java?) and fail in a way I don't understand at the moment

build() {
	qmake-qt5 QBS_INSTALL_PREFIX=/usr \
		-r qbs.pro
	make
}

package() {
	make install INSTALL_ROOT="$pkgdir"
}

sha512sums="89018be804721c28c49a983c0f56c945af4f7e7eefe769336d9dff08ed3d9a1b8377259dffaad57a2b4fa9cdabee3563dbd4f686f1fc1f25343135b568b63b3c  qbs-1.15.0.tar.gz"
